package zhihui.mobile.listener;

import android.content.Context;

import com.tencent.tauth.IUiListener;
import com.tencent.tauth.UiError;
import com.zgm.utils.UiUtils;

/**
 * Created by 张公铭 on 2017/9/14 0014.
 */

public class ShareListener implements IUiListener
{
    private Context mContext;

    public ShareListener(Context context)
    {
        mContext = context;
    }

    @Override
    public void onComplete(Object o)
    {
        UiUtils.ToastInCenter(mContext, "分享成功！",0);
    }

    @Override
    public void onError(UiError uiError)
    {
        UiUtils.ToastInCenter(mContext, "分享失败！",0);
    }

    @Override
    public void onCancel()
    {
        UiUtils.ToastInCenter(mContext, "分享取消！",0);
    }
}
